//
//  SCPickerView.h
//  Shuaiche
//
//  Created by dangshuai on 2019/4/30.
//  Copyright © 2019 zzs. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol SCPickerViewDelegate <NSObject>
@optional
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component;

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component;
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;

- (void)pickerViewDidSelectedRow:(NSInteger)row atCompont:(NSInteger)component;

@end
//NS_ASSUME_NONNULL_BEGIN

@interface SCPickerView : UIView
- (instancetype)initWithDelegate:(id<SCPickerViewDelegate>)delegate;
@property (nonatomic, weak) id<SCPickerViewDelegate> delegate;
@property (nonatomic, copy) void(^picerDidSelect)(NSInteger row);
@property (nonatomic, assign) NSInteger currentIndex;

- (void)show;
@end

